﻿//
//  Windows_libc
//
//  Created by  cc_team(陈旭，陈曦) qq:511272827.
//  Copyright 2011 cc_team. All rights reserved.
//
#ifndef CC_ARR_H
#define CC_ARR_H

#ifdef __cplusplus
extern "C" {
#endif

// find the biggest number in the arr
int __cdecl cc_arrFindBiggest(
	int arr[],
	int arrCnt
);

// find the biggest number in the arr,an extend version func
int __cdecl cc_arrFindBiggestEx(
	int arr[],
	int arrCnt
);

// find the smallest number in the arr
int __cdecl cc_arrFindSmallest(
	int arr[],
	int arrCnt
);

// find the number which is first found , equals to the specified number
// returns: the number index; if none, return -1
int __cdecl cc_arrFindEqualsNum(
	int arr[],
	int arrCnt,
	int number
);

#ifdef __cplusplus
}		// extern "C"
#endif

#endif